package com.gl.util.property;

import java.util.ResourceBundle;

public class PropertyRead {
	public static ResourceBundle resource;
	public static String getParameter(String parameterName)  throws Exception{
            String message =  resource.getString(parameterName);
            if(message == null)
                throw new Exception("property " + parameterName + " can't be found in ResourceBundle urc");
            return message;
    }
	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		PropertyRead.resource = ResourceBundle.getBundle("urc");
		System.out.println(PropertyRead.getParameter("driver"));
	}

}
